package com.onepice.mlp;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @author FireWang
 * @date 2024/11/14
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.onepice.mlp.api","com.onepice.mlp.core"})
@EntityScan("com.onepice.mlp.data.entity")
@EnableJpaRepositories("com.onepice.mlp.data.dao")
public class MlpApplication {
    public static void main(String[] args) {
        SpringApplication.run(MlpApplication.class, args);
    }

    /**
     * fix : No MyBatis mapper was found in '[com.xxx.xxx]' package. Please check your configuration
     */
    @Mapper
    public interface NoWarnMapper {
    }
}
